package com.hdoit.ares.web.acc.modelconfig;
import com.tennetcn.common.enums.regular.MathRegularExpressions;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2017年11月29日 21:07:28
 * @comment
 */
public class AccountRechargeConfig extends ModelMetadataAttributeConfiguration{
    public AccountRechargeConfig(){
    	
        this.setProperty("account")
            .hasAttribute(new DisplayNameAttribute("会员号"));

        this.setProperty("accountNo")
            .hasAttribute(new DisplayNameAttribute("账户号"));

        this.setProperty("rechargeMoney")
            .hasAttribute(new DisplayNameAttribute("充值金额"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.decimalTwo));

        this.setProperty("rechargeDate")
            .hasAttribute(new DisplayNameAttribute("充值时间"))
            .hasAttribute(new DateTimeAttribute());

        this.setProperty("rechagerNum")
            .hasAttribute(new DisplayNameAttribute("充值单号"));
        
        this.setProperty("userIdentity")
        	.hasAttribute(new DisplayNameAttribute("会员号"));
        
        this.setProperty("customerName")
        	.hasAttribute(new DisplayNameAttribute("用户名"));

    }
}